from google.appengine.ext import webapp
from google.appengine.ext.webapp import template

class BaseView(webapp.RequestHandler):
    def __init__(self):
        self.templatefile = "templates/basehome.html"

    def showGetResponse(self, template_values):
        self.response.out.write(template.render(self.templatefile, template_values))

    def showPostResponse(self, template_values):
        self.response.out.write(template.render(self.templatefile, template_values))

    def redirectToUrl(self, url):
        self.redirect(url)
